package com.lcm.learn.lcmcode.HashCodeTest;

/**
 * @description:
 * @author: lcm
 * @create: 2019-11-29 09:08
 **/

public class HashCodeTest {

    public static void main(String[] args){
        Object o=new Object();
        System.out.println(System.identityHashCode(o));
        System.out.println(o.hashCode());
        String str="test";
        System.out.println(System.identityHashCode(str));
        System.out.println(str.hashCode());
    }

}
